package org.csu.small.service;

import org.csu.small.common.Constant;
import org.csu.small.common.UniformResponse;
import org.csu.small.entity.Product;
import org.csu.small.vo.ProductVO;
import org.springframework.web.multipart.MultipartFile;

public interface IProductService {

    UniformResponse<ProductVO> detail(Integer productId, int roleType);

    UniformResponse<String> addProduct(Product product);

    UniformResponse<String> edit_product_info(Product product);

    UniformResponse<Object> getProductList(Integer categoryId, String keyword, int pageNum, int pageSize, String orderBy, int roleType);

    UniformResponse<Object> getIndexProductList();

    UniformResponse<String> set_sale_status(Integer productId, Integer status);

    UniformResponse<Object> search(Integer id, String keyword, int pageNum, int pageSize);

    UniformResponse<String> product_upload(MultipartFile upload_file, String path);

    UniformResponse<String> richtext_img_upload(MultipartFile upload_file, String path);
}
